<% layout("/modules/cms/front/themes/"+site.theme+"/common/layout.html",{nav:'share'}){ %>

<div class="layui-container fly-main" style="padding-top: 15px;">

    <div class="layui-row layui-col-space15">
        <div id="article-list" class="layui-col-md8">
            <!--面包屑导航-->
            <div class="fly-panel">
                <h3 class="fly-panel-title">
                    <span class="layui-breadcrumb">
                      <a href="${ctxFront}/index-${site.id}${@Global.getUrlSuffix()}">首页</a>
                        <%for(tpl in @CmsUtils.getCategoryListByIds(category.parentIds)){
                            if(tpl.id != "1"){%>
                            <a href="${tpl.url}">${tpl.name}</a>
                        <%}}%>
                        <a href="${category.url}"><cite>${category.name}</cite></a>
                    </span>
                </h3>
            </div>

            <%for(tpl in categoryList){
                if(tpl.inList == '1' && tpl.module != ''){%>

            <div class="fly-panel">
                <div class="fly-panel-title fly-filter">
                    ${tpl.name}
                    <span class="fly-filter-right">
                        <a href="${tpl.url}">更多<i class="fa fa-angle-double-right"></i> </a>
                    </span>
                   </div>
                <div class="fly-panel-main">
                <%if(tpl.module == 'article'){%>
                    <%for(article in @CmsUtils.getArticleList(site.id, tpl.id, 5, '')){%>
                        <ul class="mine-view jie-row">
                            <li>
                                <a class="jie-title" href="${article.url}" target="_blank">${decode(strutil.length(article.title)>=40,true,strutil.subStringTo (article.title,0,40),false,article.title,"")}</a>
                                <em><i class="iconfont" title="人气">&#xe60b;</i> ${article.hits}/${article.updateDate,dateFormat="yyyy-MM-dd "}</em>
                            </li>
                        </ul>
                    <%}elsefor{%>
                        <div>暂无数据</div>
                    <%}%>
                <%}else if(tpl.module == 'link'){%>
                    <%for(link in @CmsUtils.getLinkList(site.id, tpl.id, 5, '')){%>
                        <ul class="mine-view jie-row">
                            <li>
                                <a class="jie-title" href="${link.href}" target="_blank">${decode(strutil.length(link.title)>=40,true,strutil.subStringTo (link.title,0,40),false,link.title,"")}</a>
                                <em>${link.updateDate,dateFormat="yyyy-MM-dd "}</em>
                            </li>
                        </ul>
                    <%}elsefor{%>
                        <div>暂无数据</div>
                    <%}%>
                <%}%>
                </div>
            </div>
            <%}}%>

        </div>
        <div class="layui-col-md4 layui-hide-xs">
            <#frontCategoryList category="${category}" categoryList="${categoryList}" panelTitle="栏目列表"/>
            <#frontArticleHitsTop category="${category}" panelTitle="推荐阅读"/>
        </div>
    </div>
</div>
<%}%>